#include <iostream>//Student.cpp
#include <string>
#include "Student.h"

using namespace std;

void Student::Set()
{
    cout<<"please input the name: ";
    cin>>name;
    cout<<"please input the ID number: ";
    cin>>ID;
    cout<<"please input the English score: ";
    cin>>eng_score;
    cout<<"please input the math score: ";
    cin>>math_score;
    cout<<"please input the computer score: ";
    cin>>comp_score;
    cout<<endl;
}

void Student::Display()
{
    cout<<"name: "<<name<<"   "<<"ID: "<<ID<<endl;
    cout<<"the student\'s score result:"<<endl;
    cout<<"English: "<<eng_score<<endl;
    cout<<"Math: "<<math_score<<endl;
    cout<<"Computer: "<<comp_score<<endl<<endl;
}

void Student::Cal_Ave()
{
    double ave=(eng_score+math_score+comp_score)/3.0;
    cout<<"the average score:"<<endl;
    cout<<ave<<endl;
}
